import Vue from 'vue'
import Vuex from 'vuex'
import * as getters from './getters'
import * as actions from './actions'
import * as mutations from './mutations'
//挂载Vuex
Vue.use(Vuex)

//创建VueX对象
const store = new Vuex.Store({
  state: {
    //用户的登录信息
    myInfo: null,
    isLogin: false,
    token: ''
  },
  modules: {

  },
  getters,
  actions,
  mutations,
})

export default store
